Explanation:

getValue is a method belonging to the SFNode class. Its purpose is to aid in creating a specific class type (in our case, a Shape object). Whenever you want to change a SFNode into another type, say Foo, perform the following:

Foo newObj = (Foo)oldSFNodeObj.getValue();